package com.sword.pay.spring;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @description: 注册bean
 * @author：Lv.RJ
 * @version: 1.0.0
 * @create: 2025/02/20
 **/
public class SwordBeanRegister {


    /**
     * 注入配置
     */
    @Bean
    @ConfigurationProperties(prefix = "sword.pay.drivers")
//    @ConditionalOnProperty(prefix = "sword", name = "config-type", havingValue = "yaml")
    protected Map<String, Map<String, Object>> drivers() {
        return new LinkedHashMap<>();
    }
}
